home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / MacWindows.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  4.3 KB  |  156 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        MacWindows.r
  3.  
  4.      Contains:    Window Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __MACWINDOWS_R__
  20. #define __MACWINDOWS_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26.  
  27. /*--------------------------wctb • Window Color Lookup Table--------------------------*/
  28. /*
  29.     wctb_RezTemplateVersion:
  30.         0 - original 
  31.         1 - more color parts and implicit header    <-- default
  32.         2 - addition index table at end
  33. */
  34. #ifndef wctb_RezTemplateVersion
  35.     #ifdef oldTemp                            /* grandfather in use of “oldTemp” */
  36.         #define wctb_RezTemplateVersion 0
  37.     #elif defined(evenNewerTemp)            /* grandfather in use of “evenNewerTemp” */
  38.         #define wctb_RezTemplateVersion 2
  39.     #else
  40.         #define wctb_RezTemplateVersion 1
  41.     #endif
  42. #endif
  43.  
  44.  
  45. type 'wctb' {
  46. #if wctb_RezTemplateVersion == 0
  47.             unsigned hex longint;                                    /* ctSeed                */
  48.             integer;                                                /* ctFlags                */
  49. #elif wctb_RezTemplateVersion == 1
  50.             unsigned hex longint = 0;                                /* ctSeed                */
  51.             integer = 0;                                            /* ctFlags                */
  52. #elif wctb_RezTemplateVersion == 2
  53.             unsigned hex longint = 0;                                /* ctSeed                */
  54.             integer = 1;                                            /* ctFlags                */
  55. #endif
  56.             integer = $$Countof(ColorSpec) - 1;                        /* ctSize                */
  57.             wide array ColorSpec {
  58.                     integer        wContentColor,                        /* value                */
  59.                                 wFrameColor,
  60.                                 wTextColor,
  61.                                 wHiliteColor,
  62.                                 wTitleBarColor,
  63.                                 wHiliteLight,
  64.                                 wHiliteDark,
  65.                                 wTitleBarLight,
  66.                                 wTitleBarDark,
  67.                                 wDialogLight,
  68.                                 wDialogDark,
  69.                                 wTingeLight,
  70.                                 wTingeDark;
  71.                     unsigned integer;                                /* RGB:    red                */
  72.                     unsigned integer;                                /*        green            */
  73.                     unsigned integer;                                /*        blue            */
  74.             };
  75. #if wctb_RezTemplateVersion == 2
  76.             integer = $$Countof(IndexTable) - 1;                    /* indexTableSize        */
  77.             array IndexTable {
  78.                     integer        wActiveContentIndex,                /* indexTable            */
  79.                                 wActiveFrameIndex,
  80.                                 wActiveTitleTextIndex,
  81.                                 wActiveTitleBarIndex,
  82.                                 wActiveGrowBorderIndex,
  83.                                 wActiveTitleBarLightTingeIndex,
  84.                                 wActiveTitleBarDarkTingeIndex,
  85.                                 wActiveModalLightTingeIndex,
  86.                                 wActiveModalDarkTingeIndex,
  87.                                 wActiveModalCornerTingeIndex,
  88.                                 wRacingStripesIndex,
  89.                                 wInactiveContentIndex,
  90.                                 wInactiveFrameIndex,
  91.                                 wInactiveTitleTextIndex,
  92.                                 wInactiveTitleBarIndex,
  93.                                 wInactiveGrowBorderIndex,
  94.                                 wInactiveTitleBarLightTingeIndex,
  95.                                 wInactiveTitleBarDarkTingeIndex,
  96.                                 wInactiveModalLightTingeIndex,
  97.                                 wInactiveModalDarkTingeIndex,
  98.                                 wInactiveModalCornerTingeIndex;
  99.             };
  100. #endif
  101.     };
  102.  
  103.  
  104. /*----------------------------WIND • Window Template------------------------------------*/
  105. /*
  106.     WIND_RezTemplateVersion:
  107.         0 - original                             <-- default
  108.         1 - additional positioning info at end    
  109. */
  110. #ifndef WIND_RezTemplateVersion
  111.     #ifdef SystemSevenOrLater                    /* grandfather in use of “SystemSevenOrLater” */
  112.         #define WIND_RezTemplateVersion 1
  113.     #else
  114.         #define WIND_RezTemplateVersion 0
  115.     #endif
  116. #endif
  117.  
  118.  
  119. type 'WIND' {
  120.         rect;                                                    /* boundsRect            */
  121.         integer         documentProc,                            /* procID                */
  122.                         dBoxProc,
  123.                         plainDBox,
  124.                         altDBoxProc,
  125.                         noGrowDocProc,
  126.                         movableDBoxProc,
  127.                         zoomDocProc = 8,
  128.                         zoomNoGrow = 12,
  129.                         rDocProc = 16;
  130.         byte            invisible, visible;                     /* visible                */
  131.         fill byte;
  132.         byte            noGoAway, goAway;                        /* goAway                */
  133.         fill byte;
  134.         unsigned hex longint;                                    /* refCon                */
  135.         pstring         Untitled = "Untitled";                /* title                */
  136.         
  137. #if WIND_RezTemplateVersion == 1
  138.     /*    The following are window positioning options used by System 7.0 and later */
  139.         align word;
  140.         unsigned integer                noAutoCenter = 0x0000,
  141.                                         centerMainScreen = 0x280a,
  142.                                         alertPositionMainScreen = 0x300a,
  143.                                         staggerMainScreen = 0x380a,
  144.                                         centerParentWindow = 0xa80a,
  145.                                         alertPositionParentWindow = 0xb00a,
  146.                                         staggerParentWindow = 0xb80a,
  147.                                         centerParentWindowScreen = 0x680a,
  148.                                         alertPositionParentWindowScreen = 0x700a,
  149.                                         staggerParentWindowScreen = 0x780a;
  150. #endif
  151. };
  152.  
  153.  
  154. #endif /* __MACWINDOWS_R__ */
  155.  
  156.